var FileStream = function(devCtlId){
	//alert(devCtlId);
	this.FileStreamID=devCtlId;
	this.Ocx = function(){
		var obj =  document.getElementById(this.FileStreamID);
		if(obj == undefined || obj == null){
			alert("FileStream.ocx未加载");
			return null;
		}else{
			return obj;
		}
	};
};

FileStream.prototype.getFiledata = function(json){
	return this.Ocx().GetBase64FileStream(json.filepath);
}


$("#ocxContent").append('<OBJECT ID="FileStream"  CLASSID="clsid:96C11B07-EF6D-42B9-9AE4-D5EAB5ABAD8A"></OBJECT>');
var fileStream = new FileStream("FileStream"); //全局变量
